﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinqToLfsWorld.Interface;
using System.Runtime.Serialization;

namespace LinqToLfsWorld
{
	/// <summary>
	/// A Live For Speed team entity
	/// </summary>
	[Serializable]
	[DataContract]
	public class Team : ILfsWorldEntity
	{
		/// <summary>
		/// Gets or sets the id of the team.
		/// </summary>
		/// <value>The id.</value>
		[DataMember]
		public int Id { get; set; }

		/// <summary>
		/// Gets or sets the team name.
		/// </summary>
		/// <value>The name.</value>
		[DataMember]
		public string Name { get; set; }

		/// <summary>
		/// Gets or sets the tag.
		/// </summary>
		/// <value>The tag.</value>
		[DataMember]
		public string Tag { get; set; }

		/// <summary>
		/// Gets or sets the country.
		/// </summary>
		/// <value>The country.</value>
		[DataMember]
		public string Country { get; set; }

		/// <summary>
		/// Gets or sets the team's URL.
		/// </summary>
		/// <value>The URL.</value>
		[DataMember]
		public string Url { get; set; }

		/// <summary>
		/// Gets or sets the team flags. (see <see cref="TeamFlags"/>)
		/// </summary>
		/// <value>The flags.</value>
		[DataMember]
		public TeamFlags Flags { get; set; }

		/// <summary>
		/// Gets or sets the team information text.
		/// </summary>
		/// <value>The team info.</value>
		[DataMember]
		public string TeamInfo { get; set; }

		/// <summary>
		/// Gets or sets the team member names.
		/// </summary>
		/// <value>The members.</value>
		[DataMember]
		public string[] Members { get; set; }
	}
}
